//
//  ViewController.m
//  UI05_代理回调
//
//  Created by aaaaaa on 16/6/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "CustomLableButton.h"

@interface ViewController ()<CustomLableButtonDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatSubView];
}



- (void)creatSubView{
    CustomLableButton *customView = [[CustomLableButton alloc] initWithFrame:CGRectMake(100, 100, 100, 50)];
    customView.backgroundColor = [UIColor orangeColor];
    customView.text = @"红色";
    [self.view addSubview:customView];
    [customView release];
    customView.userInteractionEnabled = YES;
    customView.deletage = self;
    
}

//实现协议方法
- (void)touchDidEndWith:(NSString *)text{
    NSLog(@"%@", text);
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
